/**
 * @see [description](https://mp.weixin.qq.com/debug/wxadoc/dev/api/card.html#wxopencardobject)
 */
export default function open_card(cardList: Array<{ cardId: string; code: string; }>) {
	return new Promise<boolean>((resolve, reject) => {
		wx.openCard({
			cardList,
			success() {
				resolve(true);
			},
			fail() {
				reject(false);
			}
		});
	});
}
